import time
from multiprocessing.context import Process



def child1(param):
    time.sleep(param)
    print(f' chlid 1 : {param}')

def child2(param):
    time.sleep(param)
    print(f' clild 2 : {param}')

if __name__ == '__main__':
    p1 = Process(target=child1, args=(1,))
    p2 = Process(target=child2, args=(2,))
    p2.start()
    p1.start()

    print('父进程结束')
